
<form class="form-horizontal clearfix" role="form" name="siteUrlEditForm"
	action="${(cardone.webContextUrl)!}/configuration/siteUrl/save.json">
	<input type="hidden" name="id" value="${(siteUrl.id)!}">
	<div class="form-group">
		<label class="col-sm-1 control-label">站点：</label>
		<div class="col-sm-3">
			<select name="siteId" class="form-control"> 
			<#assign projectList = cardone.DictionaryUtils.findListByTypeCode("project")> 
			<#if projectList??>
				<#list projectList as project>
					<optgroup label="${project.name!}">
					<#assign siteList = cardone.SiteUtils.findListByProjectCode(project.code)> 
						<#if siteList??>
							<#list siteList as site>
								<#if site.id == siteUrl.siteId>
				<option value="${site.id}" selected="selected">${site.name}</option> <#else>
				<option value="${site.id}">${site.name}</option> </#if>
							</#list>
						</#if>
					</optgroup>
				</#list>
			</#if>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-1 control-label">代码：</label>
		<div class="col-sm-3">
			<input type="text" name="code" value="${siteUrl.code!}" class="form-control" placeholder="请输入代码" maxlength="128">
		</div>
		<label class="col-sm-1 control-label">名称：</label>
		<div class="col-sm-3">
			<input type="text" name="name" value="${siteUrl.name!}" class="form-control" placeholder="请输入名称" maxlength="128">
		</div>
		<label class="col-sm-1 control-label">排序:</label>
		<div class="col-sm-3">
			<input type="number" name="orderNum" value="${siteUrl.orderNum!}" class="form-control" placeholder="请输入排序">
		</div>
	</div>
	<div class="pull-right">
		<button class="btn btn-primary c1-save" type="button">保存</button>
		<button class="btn" type="reset">重置</button>
		<button class="btn c1-back" type="button">返回</button>
	</div>
</form>
